package zhui;
import zhuanhua.Circle;
public class cone {
	private Circle c;
	private static double h;
	double pai=3.14;
	cone(double r,double H){
		h=H;
		c=new Circle(r);
	}
public double GetArea() {
	double s=c.getArea()+pai*c.r*Math.sqrt(h*h*c.r);
	return s;

}
public double GetVolume() {
	double V=(h*c.r*c.r*pai)/3;
	return V;
}
}
